package com.qen.auto.sikulix

import org.sikuli.script.Key
import org.sikuli.script.Pattern
import org.sikuli.script.Screen

fun main() {
    val screen = Screen()
    screen.type("/Applications/QQ.app/Contents/MacOS/QQ")
    Thread.sleep(5000)

    val qqIcon = Pattern("/Users/a1/Documents/Git/Kotlin/Eleven/out/sikuli/qq.jpg")
    screen.click(qqIcon)


    screen.type("Hello world!!!")

    screen.type(Key.ENTER)
}